using System.Drawing;
using DC2010.Objects.Base;
using DC2010.Objects.Data;

namespace DC2010.Effects
{
   
    public class I_ShowMessage_Effect : EffectLogic
    {
        public I_ShowMessage_Effect(EffectData ed)
            : base(ed)
        {
            ShortName = "Show message";
            LongName = "Displays message in message area.";
            EffectType = EffectType.Instant;
        }

        public override void Instant(BaseObject aInvoker, BaseObject aTarget)
        {
            string message = Data.Params.Find(A => A.Key == "MESSAGE").Value;

            Root.I.GameSystem.InGameLog(message, Color.White);
            base.Instant(aInvoker, aTarget);
        }
    }
}
